package com.itheima.d10_abstract_exer;

public class Test {
    public static void main(String[] args) {
        Teacher t = new Teacher("小王", 18, "上海");
        t.write();

        System.out.println("---------------");
        Student s = new Student("小王", 18, "上海");
        s.write();
    }
}
